package designpatterns.responsibility.chain.code.log;

public abstract class AbstractLoggerChain {
    public static final String INFO = "info";
    public static final String ERR = "err";
    public static final String DEBUG = "debug";
    public static final String WARN = "warn";

    public String logLevel;

    private AbstractLoggerChain nextLevel;

    // 打印日志
    abstract void doPrint(Log log);

    public AbstractLoggerChain getNextLevel() {
        return nextLevel;
    }

    public void setNextLevel(AbstractLoggerChain nextLevel) {
        this.nextLevel = nextLevel;
    }

}
